<#macro userAvatar avatar="${rc.contextPath}/images/avatar.png" username="" linkClass="" imgWidth="50" imgHeight="50">
	<#if username?has_content>	
		<a href="/${username}" class="${linkClass}"><img id="${username}_avatar" src="${avatar}" alt="${username}" title="${username}" width="${imgWidth}" height="${imgHeight}"/></a>
		<script type="text/javascript">
			jQuery("#${username}_avatar").poshytip({
				className: 'tip-twitter',
				showTimeout: 1,
				alignTo: 'target',
				alignX: 'center',
				offsetY: 5,
				allowTipHover: false,
				fade: false,
				slide: false
			});
		</script>
	<#else>
		<img src="${avatar}" alt="${username}" width="${imgWidth}" height="${imgHeight}"/>
	</#if>
</#macro>